Skip to content

fix(desktop): the app starts, a copied library stands alone, and an extension has searched a real FormCite (0.14.0) - #14

Merged
nodemode-ai merged 16 commits into
mainfrom
feat/close-0.14.0
Nov 28, 2026
Merged

nodemode-ai merged 16 commits into
mainfrom
feat/close-0.14.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(desktop): the app starts, a copied library stands alone, and an extension has searched a real FormCite (0.14.0)

Summary

  • The desktop app did not start. Cause: the shell, ported from another Form app, waited ten seconds for the engine to print a window key, and FormCite's engine never prints one; the window claims its key with the launch code in the address. The wait is removed and the window opens when the engine gives its address.
  • When the window is ready the shell copies the saved look into the splash's own storage, so the splash opens in the chosen theme from the next launch.
  • A copied or moved data folder wrote into the original. Cause: the library list stored a full path. A library inside the data folder is now stored by its relative path, and older folders are read and re-pointed on first open. New page docs/DATA_FOLDER.md.
  • The pairing notice goes when its request is answered or expires, and clicking it opens Connections.
  • An unknown path under /api answers 404 for every method. Cause: the static file mount answered other methods with 405.
  • docs/CITE_SERVICE.md records the first run of form.ext's own hello example against a real engine and the codes a host gives.

Commits

16 commits, oldest first, release commit last:

  • 5 fix (data folder rebase, 404 for unknown api paths, desktop engine start, relative library path, pairing notice)
  • 2 feat (splash look on the desktop, a notice that opens something when clicked)
  • 1 refactor (look routes mounted once)
  • 7 docs (cite service twice, data folder, four log commits)
  • 1 chore (release)

Version

v0.14.0 (release commit is last). Bumped: frontend/package.json, two fields in frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, the formcite entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, native/formcite-style/Cargo.toml, its Cargo.lock entry and pyproject.toml, the "Current build version" line in the four HASHOUT_LOG.md files, the README badge, and a new CHANGELOG.md section.

Checks

  • npm run check and the import of app.main and app.cli passed at the head; the import passed at each of the 16 commits.
  • Desktop: cargo build --release --features tauri/custom-protocol on Linux finished with no errors and no warnings. Run on a virtual display with the engine started from source: before the fix the app showed "it waited 10 seconds for its engine to hand over the key"; after it, the library window opened with 2,000 items. With Ocean and an accent saved, the window opened in Ocean on each of three launches, and the splash card was Ocean on the launch after the first.
  • Data folder: after cp -a and then mv, an import into the copy left the original at 2,000 items and the copy at 2,001; libraries.json reads "root": "Library".
  • The library exit run in Chrome at CPU 4x with a slowed network, on the branch before the release commit: 0 layout shift on all 13 steps.
  • By the slices: form.ext's hello example at commit affacd2, through its host bridge and Python client, showed one found title from a real engine after the host's consent and the approval in Connections; -32001 with the permission off; -32601 from the bridge of form.ext a449e91; -32004 after access was removed and -32003 after a pairing was denied. The pairing notice left 0.62 s after Approve and after Deny with 0 shift. "Deleted for good.", the arrow keys on the theme list and Meta+Enter and Control+Enter on the title read 0 shift.

Not run: a packaged build with the frozen engine; anything on macOS or Windows; a request expiring; the notice checks in light or after the last small change to toast.ts. form.ext's Preview has no switch to a real FormCite, so the hello run used its bridge and client joined by a small page outside both repos.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

The first read of a data folder now points a library entry that names another data folder's library, or a missing place, at the same folder inside this data folder when it exists there, so a copy no longer edits the original. Libraries placed elsewhere keep their absolute path.
A catch-all route for /api now sits after every real api route, so the window's static mount no longer answers 405 to a POST, PUT or DELETE on a path that does not exist. The look routes are mounted with the others so the catch-all cannot shadow them.
…codes

The host section now names the codes form.ext 0.12.0 actually gives: -32001 for a host-side refusal, -32003 for no approved pairing and -32004 for a FormCite refusal such as a removed token.
FormCite answered a real search from form.ext 0.12.0's host bridge and hello example after consent and approval; the denied and older host error objects are recorded with the two form.ext commits.
…vice

Notes that the service log holds writes only, how form.ext maps refusals, and a pairing toast that stayed after approval.
A new page lists what the data folder holds and how a copied, moved or older data folder finds its own libraries while a library placed elsewhere keeps its path.
The backend entry records why copies shared a library and how the catch-all route sits; the frontend entry records the Trash purge run in both themes.
The shell waited for the engine to print a window key that FormCite's engine never prints, so the packaged app failed after ten seconds. The window claims its key with the launch code, so the wait is removed.
When the window is ready the shell copies the saved look from the data folder into the splash's own storage.
The engine start fix and the splash look, with how each was seen.
The library list stores a root inside the data folder relative to it, so a copied or moved data folder is self-contained. A library placed elsewhere keeps its full path, and old full-path entries are still read.
The registry includes the look router now; the second include in main.py is removed.
A notice can now carry an open action, run when its text is clicked, and takes pointer events only then.
The toast leaves when the last open request is answered or expires, stays with updated text while another waits, and opens Connections when clicked.
Records how the toast is dismissed and opened and what was measured.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 28, 2026 04:54
@nodemode-ai
nodemode-ai merged commit da4fb72 into main Nov 28, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the feat/close-0.14.0 branch December 1, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant